//
//  CellFreshmen.m
//  UESTCPioneer
//
//  Created by sss on 14-8-19.
//  Copyright (c) 2014年 Sway. All rights reserved.
//

#import "CellFreshmen.h"

@implementation CellFreshmen

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        [self.contentView addSubview:self.title];
        [self.contentView addSubview:self.time];
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(UILabel*)title{
    if (!_title) {
        _title = [[UILabel alloc]initWithFrame:CGRectMake(15, 0, self.frame.size.width - 95, self.frame.size.height)];
        _title.textColor = [UIColor blackColor];
        _title.font = [UIFont systemFontOfSize:14];
    }
    return _title;
}
-(UILabel*)time{
    if (!_time) {
        _time = [[UILabel alloc]initWithFrame:CGRectMake(self.frame.size.width - 80, 0, 80, self.frame.size.height)];
        _time.textColor = [UIColor lightGrayColor];
        _time.font = [UIFont systemFontOfSize:14];
    }
    return _time;
}
@end
